<?php 
	/**
	*	创建人类
	*/
	class Person
	{
		//成员属性
		public $name;
		public $age;
		public $sex;
		function __construct($name="", $age=0, $sex="男")
		{
			$this->name = $name;
			$this->age  = $age;
			$this->sex  = $sex;
		}

		function say(){
			echo "大家好！我叫：{$this->name}我的年龄是：{$this->age}我的性别是{$this->sex}<br>";
		}

		function run() {

		}

		function eat(){

		}

		function __destruct(){
			echo "再见!{$this->name}<br>";
		}
	}

	$a = new Person("黄碧雯", 20, "女");
	echo $a->name;
	$a->age = 24;

	echo $a->say();













 ?>